import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 导入全局自定义样式
import '@/style/index.less'
// 导入flexible实现设置根标签的rem大小
import 'amfe-flexible'
// 导入vant组件库
import Vant from 'vant'
import 'vant/lib/index.css'
// 导入自定义过滤器函数
import * as filters from '@/filter'
// 批量注册过滤器
Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])
})

// 安装vant
Vue.use(Vant)

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
